import requests
import os
url = "http://localhost:8562/pdf2md/"
pdf_paths = [
    "/home/fengjie/GITEE/pdf2md_without_ocr/inputs/样例.pdf"
]
pdf_paths = [os.path.abspath(os.path.join(os.path.dirname(__file__), pdf_path)) for pdf_path in pdf_paths]
data = {
    'user_id': 'test_user',
    "pdf_paths": pdf_paths,
    "output_dir": "./output"
}

resp = requests.post(url, json=data)
print(resp.json())
